import base from '@/api/baseurl';
import request from '@/utils/request'

 

/* 曲线维护选项-所有 */
export function transfercurveGpFingTransferCurvecodename(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/fingTransferCurvecodename',
    method: 'get',
    params: query
  })
}

/* 曲线维护选项-被选中的参数 query:id */
export function transfercurveGpFingTransferCurvecodenamein(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/fingTransferCurvecodenamein',
    method: 'get',
    params: query
  })
}

  
// 修改曲线维护参数
export function transfercurveGpAddTransferCurveGpZi(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/addTransferCurveGpZi',
    method: 'post',
    data
  })
}


/**
 * 查询曲线组
 * @param {*} query 
 * @returns 
 */
export function fingTransferCurveGp(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/fingTransferCurveGp',
    method: 'get',
    params: query
  })
}

/**
 * 单行删除
 * @param {*} query 
 * @returns 
 */
export function daleteTransferCurveGp(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/daleteTransferCurveGp',
    method: 'get',
    params: query
  })
}

/**
 * 添加转移曲线组
 * @param {*} data 
 * @returns 
 */
export function addTransferCurveGp(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/addTransferCurveGp',
    method: 'post',
    data
  })
}
/**
 * 修改转移曲线组
 * @param {*} data 
 * @returns 
 */
export function updateTransferCurveGp(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/updateTransferCurveGp',
    method: 'post',
    data
  })
}
/**
 * 多选删除
 * @param {*} data 
 * @returns 
 */
export function deletetransferCurveGpBatch(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/deletetransferCurveGpBatch',
    method: 'post',
    data
  })
}


/**
 * 获取转移曲线组设置的曲线组编号
 * @param {*} query 
 * @returns 
 */
 export function addcv_gp_code(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TransfercurveGp/addcv_gp_code',
    method: 'get',
    params: query
  })
}

